#include "KitRecipe.h"
#include "Enums.h"
#include "qdebug.h"

KitRecipe::KitRecipe()
{
	//PartType partsNeeded[8] = { EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY, EMPTY }; 
}

KitRecipe::~KitRecipe()
{
}
/*
void KitRecipe::setParts(std::map<int, PartType> parts)
{
	for (std::map<int, PartType>::iterator it = parts.begin(); it != parts.end(); it++ )
	{
		if ( (*it).first > 7)
		{
			qDebug() << " !!!!!!!!!!!!!!!!!!!!!!!!! KitRecipe.setParts given an index out of bounds.!!!!!!!!!!!!!!!!!\n";
		}
		partsNeeded[(*it).first] = (*it).second;
	}
}
*/
bool operator== (const KitRecipe &k1, const KitRecipe &k2)
{
	if (k1.partsNeeded.size() != k2.partsNeeded.size())
		return false;
	for (int i = 0; i < k1.partsNeeded.size(); i++)
	{
		if (k1.partsNeeded[i] != k2.partsNeeded[i])
		{
			return false;
		}
	}

	return true;
}